{%extends '../base/base.tpl'%}

{%block 'title'%}运营管理-红包{%/block%}

{%block 'header_css'%}
<link href="../../static/js/common/plugins/chosen/chosen.css?__inline" rel="stylesheet">
<link href="../../static/css/plugins/iCheck/custom.css?__inline" rel="stylesheet">
<link href="../../static/css/style.min.css?__inline" rel="stylesheet">
<link href="../../static/css/common.css?__inline" rel="stylesheet">
	<style type="text/css">
		table{font-size:13px;text-align:center;}
		thead{font-weight:bold;text-align:center;}
		th{text-align: center;}
		
	</style>
{%/block%}

{%block 'header_js'%}	

{%/block%}

{%block 'foot'%}

{%/block%}

{%block 'body'%}
  	<div id="wrapper">
  		{%include file="../../widget/left_menu.tpl"%}
		<div id="page-wrapper" class="gray-bg dashbard-1">
		{%include file="../../widget/header.tpl"%}
		<div class="row J_mainContent" id="content-main">
			
            <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h3>新增优惠券</h3>
                    </div>
                    <div class="ibox-content">
                        <form method="get" class="form-horizontal">
                        	<div class="form-group">
                                <label class="col-sm-2 control-label">红包名称：</label>

                                <div class="col-sm-6">
                                    <input type="text" class="form-control" placeholder="红包名称">
                                </div>
                            </div>
							<div class="form-group">
                                <label class="col-sm-2 control-label">红包类型：</label>
                            	 <div class="col-sm-6">
	                                <select data-placeholder="请选择使用商家" id="coupon_type" class="col-sm-12 form-control m-b" width="" tabindex="">
	                                    <option value="0">代金券</option>
	                                    <option value="1" hassubinfo="true">折扣券</option>
	                                </select>
	                            </div>
                            </div>
                            <div class="form-group" id="coupon_type_daijin">
                                <label class="col-sm-2 control-label">红包金额：</label>

                                <div class="col-sm-2">
                                    <input type="text" class="form-control" placeholder="红包金额">
                                </div>
                                <label class="col-sm-2 control-label">满减基线：</label>

                                <div class="col-sm-2">
                                    <input type="text" class="form-control" placeholder="满减基线">
                                </div>
                            </div>
                            <div class="form-group" id="coupon_type_zhekou">
                                <label class="col-sm-2 control-label">红包折扣：</label>

                                <div class="col-sm-2">
                                    <input type="text" class="form-control" placeholder="红包折扣">
                                </div>
                                <label class="col-sm-2 control-label">最高抵扣：</label>

                                <div class="col-sm-2">
                                    <input type="text" class="form-control" placeholder="最高抵扣">
                                </div>
                            </div>
                            <div class="form-group">
                            	<label class="col-sm-2 control-label">使用商家：</label>
	                            <div class="col-sm-6">
	                                <select data-placeholder="请选择使用商家" class="chosen-select col-sm-12" width="" tabindex="">
	                                    <option value="">全部</option>
	                                    <option value="110000" hassubinfo="true">贝肯熊滴胶挂饰两款</option>
	                                    <option value="120000" hassubinfo="true">艾普拉斯儿童摄影代金券</option>
	                                    <option value="130000" hassubinfo="true">艾普拉斯写真代金券</option>
	                                    <option value="110000" hassubinfo="true">贝肯熊滴胶挂饰两款</option>
	                                    <option value="120000" hassubinfo="true">艾普拉斯儿童摄影代金券</option>
	                                    <option value="130000" hassubinfo="true">艾普拉斯写真代金券</option>
	                                    <option value="110000" hassubinfo="true">贝肯熊滴胶挂饰两款</option>
	                                    <option value="120000" hassubinfo="true">艾普拉斯儿童摄影代金券</option>
	                                    <option value="130000" hassubinfo="true">艾普拉斯写真代金券</option>
	                                    <option value="110000" hassubinfo="true">贝肯熊滴胶挂饰两款</option>
	                                    <option value="120000" hassubinfo="true">艾普拉斯儿童摄影代金券</option>
	                                    <option value="130000" hassubinfo="true">艾普拉斯写真代金券</option>
	                                </select>
	                            </div>
	                        </div>
                            <div class="form-group">
                            	<label class="col-sm-2 control-label">使用商品：</label>
	                            <div class="col-sm-6">
	                                <select data-placeholder="请选择使用商家" class="chosen-select col-sm-12" width="" tabindex="">
	                                    <option value="">全部</option>
	                                    <option value="110000" hassubinfo="true">贝肯熊滴胶挂饰两款</option>
	                                    <option value="120000" hassubinfo="true">艾普拉斯儿童摄影代金券</option>
	                                    <option value="130000" hassubinfo="true">艾普拉斯写真代金券</option>
	                                    <option value="110000" hassubinfo="true">贝肯熊滴胶挂饰两款</option>
	                                    <option value="120000" hassubinfo="true">艾普拉斯儿童摄影代金券</option>
	                                    <option value="130000" hassubinfo="true">艾普拉斯写真代金券</option>
	                                    <option value="110000" hassubinfo="true">贝肯熊滴胶挂饰两款</option>
	                                    <option value="120000" hassubinfo="true">艾普拉斯儿童摄影代金券</option>
	                                    <option value="130000" hassubinfo="true">艾普拉斯写真代金券</option>
	                                    <option value="110000" hassubinfo="true">贝肯熊滴胶挂饰两款</option>
	                                    <option value="120000" hassubinfo="true">艾普拉斯儿童摄影代金券</option>
	                                    <option value="130000" hassubinfo="true">艾普拉斯写真代金券</option>
	                                </select>
	                            </div>
	                        </div>
	                        <div class="form-group">
                            	<label class="col-sm-2 control-label">商品类型：</label>
	                            <div class="col-sm-6">
	                                <select data-placeholder="请选择使用商家" id="goods_type" class="col-sm-12 form-control m-b" width="" tabindex="">
	                                    <option value="-1">全部类型</option>
	                                    <option value="1" hassubinfo="true">票类</option>
	                                    <option value="2" hassubinfo="true">实体商品类</option>
	                                    <option value="3" hassubinfo="true">乐享卡类</option>
	                                </select>
	                            </div>
	                        </div>
                        </form>
                    	<a type="button" href="" class="btn btn-primary">保存</a>

                    </div>
                </div>
        </div>
  		{%include file="../../widget/footer.tpl"%}
  		</div>
  	</div>
{%/block%}
 	
{%block 'foot_js'%}
<script src="../../static/js/common/plugins/chosen/chosen.jquery.js?__inline"></script>
<script src="../../static/js/common/plugins/iCheck/icheck.min.js?__inline"></script>

<script type="text/javascript">
 	$(function(){
 		$('.chosen-select').chosen({});

        $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
    
 	})
 	if($("#coupon_type").val() == 0){
 		$("#coupon_type_daijin").show();
 		$("#coupon_type_zhekou").hide();
 	}else{
 		$("#coupon_type_daijin").hide();
 		$("#coupon_type_zhekou").show();
 	}
 	$("#coupon_type").change(function(){
 		if($("#coupon_type").val() == 0){
 		$("#coupon_type_daijin").show();
 		$("#coupon_type_zhekou").hide();
 	}else{
 		$("#coupon_type_daijin").hide();
 		$("#coupon_type_zhekou").show();
 	}
 		})
</script> 
{%/block%}
